WinWaitActive("Authentication Required","","5")
 If WinExists("Authentication Required") Then
	WinActivate("Authentication Required", "")
 
 Send("AD2008R2\DemoAdmin{TAB}")
 Send("Password1{Enter}")
EndIf